package com.example.myadmin.dept.service.impl;

import com.example.myadmin.dept.entity.Dept;
import com.example.myadmin.dept.mapper.DeptMapper;
import com.example.myadmin.dept.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptMapper deptMapper;
    @Override
    public List<Dept> getAllDept() {
       return deptMapper.getAllDept();
    }
}
